﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckButton, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckButton, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "Function"))

	_DB:AddCodeHelp("GetDisabledCheckedTexture", [=[Returns the texture used when the button is disabled and checked]=], [=[GetDisabledCheckedTexture()]=])
	_DB:AddCodeHelp("GetChecked", [=[Returns whether the check button is checked]=], [=[GetChecked()]=])
	_DB:AddCodeHelp("SetCheckedTexture", [=[Sets the texture used when the button is checked]=], [=[SetCheckedTexture("filename")]=])
	_DB:AddCodeHelp("SetDisabledCheckedTexture", [=[Sets the texture used when the button is disabled and checked]=], [=[SetDisabledCheckedTexture("filename")]=])
	_DB:AddCodeHelp("Enable", [=[Allows user interaction with the button]=], [=[Enable()]=])
	_DB:AddCodeHelp("SetChecked", [=[Sets whether the check button is checked]=], [=[SetChecked(enable)]=])
	_DB:AddCodeHelp("GetCheckedTexture", [=[Returns the texture used when the button is checked]=], [=[GetCheckedTexture()]=])
	_DB:AddCodeHelp("Disable", [=[Disallows user interaction with the button]=], [=[Disable()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.CheckButton, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Button, "Property"))

	_DB:AddCodeHelp("CheckedTexture", [[the texture used when the button is checked]], IGAS:GetPropertyType("Texture"))
	_DB:AddCodeHelp("Checked", [[true if the checkbutton is checked]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("DisabledCheckedTexture", [[the texture used when the button is disabled and checked]], IGAS:GetPropertyType("Texture"))
	_DB:AddCodeHelp("CheckedTexturePath", [[the texture file used when the button is checked]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("DisabledCheckedTexturePath", [[the texture file used when the button is disabled and checked]], IGAS:GetPropertyType("string"))
end
